﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace J.StatusModel
{
    /// <summary>
    /// 订单表
    /// </summary>
    [Table("OrdersModel")]
    public class OrdersModel
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int ID { get; set; }
        /// <summary>
        /// 房号
        /// </summary>
        public int RoomNum { get; set; }
        /// <summary>
        /// 房型
        /// </summary>
        public string RoomType { get; set; }
        /// <summary>
        /// 订单状态
        /// </summary>
        public OrderState OrderState { get; set; }
        /// <summary>
        /// 预定表id(外键)
        /// </summary>
        public int BookingId { get; set; }
    }
    /// <summary>
    /// 订单状态
    /// </summary>
    public enum OrderState
    {
        待入住=1,入住中,已退房,已结算,超时未入住,已取消
    }
}
